Optimal. Leaf size=242 \[ \frac {\sqrt [3]{1-\frac {9 h^2 x^2}{g^2}} \tan ^{-1}\left (\frac {1}{\sqrt {3}}-\frac {2^{2/3} \left (1-\frac {3 h x}{g}\right )^{2/3}}{\sqrt {3} \sqrt [3]{1+\frac {3 h x}{g}}}\right )}{2^{2/3} \sqrt {3} h \sqrt [3]{-\frac {c g^2}{h^2}+9 c x^2}}+\frac {\sqrt [3]{1-\frac {9 h^2 x^2}{g^2}} \log \left (g^2+3 h^2 x^2\right )}{6\ 2^{2/3} h \sqrt [3]{-\frac {c g^2}{h^2}+9 c x^2}}-\frac {\sqrt [3]{1-\frac {9 h^2 x^2}{g^2}} \log \left (\left (1-\frac {3 h x}{g}\right )^{2/3}+\sqrt [3]{2} \sqrt [3]{1+\frac {3 h x}{g}}\right )}{2\ 2^{2/3} h \sqrt [3]{-\frac {c g^2}{h^2}+9 c x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 242, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {1023, 1022}
\begin {gather*} \frac {\sqrt [3]{1-\frac {9 h^2 x^2}{g^2}} \text {ArcTan}\left (\frac {1}{\sqrt {3}}-\frac {2^{2/3} \left (1-\frac {3 h x}{g}\right )^{2/3}}{\sqrt {3} \sqrt [3]{\frac {3 h x}{g}+1}}\right )}{2^{2/3} \sqrt {3} h \sqrt [3]{9 c x^2-\frac {c g^2}{h^2}}}+\frac {\sqrt [3]{1-\frac {9 h^2 x^2}{g^2}} \log \left (g^2+3 h^2 x^2\right )}{6\ 2^{2/3} h \sqrt [3]{9 c x^2-\frac {c g^2}{h^2}}}-\frac {\sqrt [3]{1-\frac {9 h^2 x^2}{g^2}} \log \left (\left (1-\frac {3 h x}{g}\right )^{2/3}+\sqrt [3]{2} \sqrt [3]{\frac {3 h x}{g}+1}\right )}{2\ 2^{2/3} h \sqrt [3]{9 c x^2-\frac {c g^2}{h^2}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1022
Rule 1023
Rubi steps
\begin {align*} \int \frac {g+h x}{\sqrt [3]{-\frac {c g^2}{h^2}+9 c x^2} \left (g^2+3 h^2 x^2\right )} \, dx &=\frac {\sqrt [3]{1-\frac {9 h^2 x^2}{g^2}} \int \frac {g+h x}{\left (g^2+3 h^2 x^2\right ) \sqrt [3]{1-\frac {9 h^2 x^2}{g^2}}} \, dx}{\sqrt [3]{-\frac {c g^2}{h^2}+9 c x^2}}\\ &=\frac {\sqrt [3]{1-\frac {9 h^2 x^2}{g^2}} \tan ^{-1}\left (\frac {1}{\sqrt {3}}-\frac {2^{2/3} \left (1-\frac {3 h x}{g}\right )^{2/3}}{\sqrt {3} \sqrt [3]{1+\frac {3 h x}{g}}}\right )}{2^{2/3} \sqrt {3} h \sqrt [3]{-\frac {c g^2}{h^2}+9 c x^2}}+\frac {\sqrt [3]{1-\frac {9 h^2 x^2}{g^2}} \log \left (g^2+3 h^2 x^2\right )}{6\ 2^{2/3} h \sqrt [3]{-\frac {c g^2}{h^2}+9 c x^2}}-\frac {\sqrt [3]{1-\frac {9 h^2 x^2}{g^2}} \log \left (\left (1-\frac {3 h x}{g}\right )^{2/3}+\sqrt [3]{2} \sqrt [3]{1+\frac {3 h x}{g}}\right )}{2\ 2^{2/3} h \sqrt [3]{-\frac {c g^2}{h^2}+9 c x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.72, size = 381, normalized size = 1.57 \begin {gather*} \frac {\sqrt [3]{-\frac {2 g^2}{h^2}+18 x^2} \left (2 \sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} \sqrt [3]{g} h^{2/3} \sqrt [3]{-\frac {g^2}{h^2}+9 x^2}}{2^{2/3} g-3\ 2^{2/3} h x+\sqrt [3]{g} h^{2/3} \sqrt [3]{-\frac {g^2}{h^2}+9 x^2}}\right )-2 \log \left (\sqrt [3]{g} \sqrt [3]{-\frac {g^2}{h^2}+9 x^2}\right )+\log \left (g^{2/3} \left (-\frac {g^2}{h^2}+9 x^2\right )^{2/3}\right )+2 \log \left (2^{2/3} g-3\ 2^{2/3} h x-2 \sqrt [3]{g} h^{2/3} \sqrt [3]{-\frac {g^2}{h^2}+9 x^2}\right )-\log \left (\sqrt [3]{2} g^2-6 \sqrt [3]{2} g h x+9 \sqrt [3]{2} h^2 x^2+2^{2/3} g^{4/3} h^{2/3} \sqrt [3]{-\frac {g^2}{h^2}+9 x^2}-3\ 2^{2/3} \sqrt [3]{g} h^{5/3} x \sqrt [3]{-\frac {g^2}{h^2}+9 x^2}+2 g^{2/3} h^{4/3} \left (-\frac {g^2}{h^2}+9 x^2\right )^{2/3}\right )\right )}{12 g^{2/3} \sqrt [3]{h} \sqrt [3]{c \left (-\frac {g^2}{h^2}+9 x^2\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \frac {h x +g}{\left (-\frac {c \,g^{2}}{h^{2}}+9 c \,x^{2}\right )^{\frac {1}{3}} \left (3 h^{2} x^{2}+g^{2}\right )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {g + h x}{\sqrt [3]{c \left (- \frac {g}{h} + 3 x\right ) \left (\frac {g}{h} + 3 x\right )} \left (g^{2} + 3 h^{2} x^{2}\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {g+h\,x}{\left (g^2+3\,h^2\,x^2\right )\,{\left (9\,c\,x^2-\frac {c\,g^2}{h^2}\right )}^{1/3}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________